﻿import request from '/@/utils/request';
enum Api {
	AddPrintDev = '/api/printDev/add',
	DeletePrintDev = '/api/printDev/delete',
	UpdatePrintDev = '/api/printDev/update',
	PagePrintDev = '/api/printDev/page',
	DetailPrintDev = '/api/printDev/detail',
	GetFields = '/api/printDev/fields',
	ListPrintDev = '/api/printDev/list',
}

// 增加打印模板2
export const addPrintDev = (params?: any) =>
	request({
		url: Api.AddPrintDev,
		method: 'post',
		data: params,
	});

// 删除打印模板2
export const deletePrintDev = (params?: any) =>
	request({
		url: Api.DeletePrintDev,
		method: 'post',
		data: params,
	});

// 编辑打印模板2
export const updatePrintDev = (params?: any) =>
	request({
		url: Api.UpdatePrintDev,
		method: 'post',
		data: params,
	});

// 获取表单字段
export const getFields = (params?: any) =>
	request({
		url: Api.GetFields,
		method: 'post',
		data: params,
	});

// 分页查询打印模板2
export const pagePrintDev = (params?: any) =>
	request({
		url: Api.PagePrintDev,
		method: 'post',
		data: params,
	});

// 详情打印模板2
export const detailPrintDev = (id: any) =>
	request({
		url: Api.DetailPrintDev,
		method: 'get',
		data: { id },
	});

// 打印模板列表
export const listPrintDev = (params?: any) =>
	request({
		url: Api.ListPrintDev,
		method: 'get',
		data: { params },
	});
